﻿@{
    ViewBag.Title = "MenuIndex";
    //Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ViewJs{    
    <script type="text/javascript" src="@Url.Content("~/Scripts/MenuIndex.js")"></script>
}
<!--初始化显示-->
<table id="dg" title="菜单管理"  class="easyui-treegrid"  style="height:500px" > 
    <!--<thead>
        <tr>
           <th field="chk" checkbox="true" title="全选">全选</th>
            <th field="Title" width="100" >标题</th>             
            <th field="Url" width="100" >链接</th>
             <th field="_parentId" width="100" >父级ID</th>
            <th field="Sequence" width="50" >顺序</th>
            <th field="IsShow" width="50" >是否显示</th>
            <th field="CreateTime" width="100" >创建时间</th>             
        </tr>
    </thead> -->     
</table>
<div id="toolbar">  
    <a href="#" id="lbtnAddRoot" class="easyui-linkbutton" iconCls="icon-add" plain="true" >添加根</a>
    <a href="#" id="lbtnAdd" class="easyui-linkbutton" iconCls="icon-add" plain="true" >添加子菜单</a>  
    <a href="#" id="lbtnEdit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" >修改</a>  
    <a href="#" id="lbtnRemove" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" >删除</a>     
    <label>| 菜单名:</label>  
    <input id="txtQueryName"  class="easyui-validatebox" name="txtQueryName"/> 
    <a href="#" id="lbtnQuery" class="easyui-linkbutton" iconCls="icon-search" plain="true" >查询</a>           
</div> 
   <!--添加-->
<div id="dlg" class="easyui-dialog" style="width:550px;height:400px;padding:10px 20px"  
        closed="true" buttons="#dlg-buttons" modal="true" shadow="true" > 
     <div class="ftitle">菜单管理</div>       
      <form id="fm" method="post">
        <div class="fitem">  
            <label>编号:</label>  
            <input id="txtMenuID"  class="easyui-validatebox" name="MenuID"/>  
        </div>
        <div class="fitem">  
            <label>父级编号:</label>  
            <input id="txtParentID"  class="easyui-validatebox" name="ParentID"/>  
        </div>         
        <div class="fitem">  
            <label>标题:</label>  
            <input id="txtTitle"  class="easyui-validatebox" name="Title"/>  
        </div> 
         <div class="fitem">  
            <label>链接:</label>  
            <input id="txtUrl"  class="easyui-validatebox" name="Url"/>  
        </div>
        <div class="fitem">  
            <label>顺序:</label>  
            <input id="txtSequence"  class="easyui-validatebox" name="Sequence"/>  
        </div>
        <div class="fitem">  
            <label>是否显示:</label>  
            <input id="txtIsShowYes" type="radio" value="1" checked name="IsShow"/>是
            <input id="txtIsShowNo" type="radio"  value="0"  name="IsShow"/>否   
        </div> 
    </form>  
</div> 
 <div id="dlg-buttons">        
    <a href="#" id="lbtnSave" class="easyui-linkbutton" iconCls="icon-ok" >保 存</a>  
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取 消</a>  
</div> 

